import { IsNotEmpty } from 'class-validator';

export class CreateTowerDto {
  @IsNotEmpty({ message: '塔号不能为空' })
  tName: string;

  tType: string;

  @IsNotEmpty({ message: '塔类不能为空' })
  tStyle: string;

  corner: string;

  @IsNotEmpty({ message: '塔高度不能为空' })
  altitude: number;

  @IsNotEmpty({ message: '区段ID不能为空' })
  lineId: number;
}
